GBML manual / Constants

BTN_L

The GBA’s L button, for btn_held/btn_pressed/btn_released.

Sega Genesis: not available

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

BTN_L: constant

Description

Names the GBA's L button, for passing to btn_held, btn_pressed or btn_released - the left shoulder button.

Example

if (btn_pressed(BTN_L)) {
    var fired = true;
}

Checks for a fresh press of L this frame.

See also: btn_heldbtn_pressedbtn_released